package com.ruoyi.buy.domain.entity.PO;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生成采购清单明细对象 buy_purchase_bill_item
 * 
 * @author ruoyi
 * @date 2023-12-13
 */
public class BuyPurchaseBillItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 主表ID */
    @Excel(name = "主表ID")
    private Long nMainId;

    /** 零件代码 */
    @Excel(name = "零件代码")
    private String vSpa;

    /** 零件名称 */
    @Excel(name = "零件名称")
    private String vSpaName;

    /** 类型 */
    @Excel(name = "类型")
    private String vKind;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String vSpaModel;

    /** 品牌 */
    @Excel(name = "品牌")
    private String vSpaBrand;

    /** 单位 */
    @Excel(name = "单位")
    private String vUnit;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal nPrice;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal nQty;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    /** 质保期 */
    @Excel(name = "质保期")
    private String nDays;

    /** 数量 */
    @Excel(name = "已发物流数量")
    private BigDecimal nPostQty;

    /** 数量 */
    @Excel(name = "已开发票数量")
    private BigDecimal nInvQty;

    /** 数量 */
    @Excel(name = "已入库数量")
    private BigDecimal nINWHQty;

    /** 数量 */
    @Excel(name = "已到货数量")
    private BigDecimal nArrivedQty;

    private String applyBy;

    private String vProjectNo;

    private String vProjectDec;

    private String vBuyNo;

    private Long requestItemId;

    public Long getRequestItemId() {
        return requestItemId;
    }

    public void setRequestItemId(Long requestItemId) {
        this.requestItemId = requestItemId;
    }

    public String getApplyBy() {
        return applyBy;
    }

    public void setApplyBy(String applyBy) {
        this.applyBy = applyBy;
    }

    public String getvProjectNo() {
        return vProjectNo;
    }

    public void setvProjectNo(String vProjectNo) {
        this.vProjectNo = vProjectNo;
    }

    public String getvProjectDec() {
        return vProjectDec;
    }

    public void setvProjectDec(String vProjectDec) {
        this.vProjectDec = vProjectDec;
    }

    public String getvBuyNo() {
        return vBuyNo;
    }

    public void setvBuyNo(String vBuyNo) {
        this.vBuyNo = vBuyNo;
    }

    public BigDecimal getnArrivedQty() {
        return nArrivedQty;
    }

    public void setnArrivedQty(BigDecimal nArrivedQty) {
        this.nArrivedQty = nArrivedQty;
    }

    public BigDecimal getnPostQty() {
        return nPostQty;
    }

    public void setnPostQty(BigDecimal nPostQty) {
        this.nPostQty = nPostQty;
    }

    public BigDecimal getnInvQty() {
        return nInvQty;
    }

    public void setnInvQty(BigDecimal nInvQty) {
        this.nInvQty = nInvQty;
    }

    public BigDecimal getnINWHQty() {
        return nINWHQty;
    }

    public void setnINWHQty(BigDecimal nINWHQty) {
        this.nINWHQty = nINWHQty;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setnMainId(Long nMainId) 
    {
        this.nMainId = nMainId;
    }

    public Long getnMainId() 
    {
        return nMainId;
    }
    public void setvSpa(String vSpa) 
    {
        this.vSpa = vSpa;
    }

    public String getvSpa() 
    {
        return vSpa;
    }
    public void setvSpaName(String vSpaName) 
    {
        this.vSpaName = vSpaName;
    }

    public String getvSpaName() 
    {
        return vSpaName;
    }
    public void setvKind(String vKind) 
    {
        this.vKind = vKind;
    }

    public String getvKind() 
    {
        return vKind;
    }
    public void setvSpaModel(String vSpaModel) 
    {
        this.vSpaModel = vSpaModel;
    }

    public String getvSpaModel() 
    {
        return vSpaModel;
    }
    public void setvSpaBrand(String vSpaBrand) 
    {
        this.vSpaBrand = vSpaBrand;
    }

    public String getvSpaBrand() 
    {
        return vSpaBrand;
    }
    public void setvUnit(String vUnit) 
    {
        this.vUnit = vUnit;
    }

    public String getvUnit() 
    {
        return vUnit;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setnPrice(BigDecimal nPrice) 
    {
        this.nPrice = nPrice;
    }

    public BigDecimal getnPrice()
    {
        return nPrice;
    }
    public void setnQty(BigDecimal nQty)
    {
        this.nQty = nQty;
    }

    public BigDecimal getnQty()
    {
        return nQty;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setnDays(String nDays) 
    {
        this.nDays = nDays;
    }

    public String getnDays() 
    {
        return nDays;
    }

    @Override
    public String toString() {
        return "BuyPurchaseBillItem{" +
                "id=" + id +
                ", nMainId=" + nMainId +
                ", vSpa='" + vSpa + '\'' +
                ", vSpaName='" + vSpaName + '\'' +
                ", vKind='" + vKind + '\'' +
                ", vSpaModel='" + vSpaModel + '\'' +
                ", vSpaBrand='" + vSpaBrand + '\'' +
                ", vUnit='" + vUnit + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", nPrice=" + nPrice +
                ", nQty=" + nQty +
                ", status='" + status + '\'' +
                ", supplier='" + supplier + '\'' +
                ", nDays='" + nDays + '\'' +
                ", nPostQty=" + nPostQty +
                ", nInvQty=" + nInvQty +
                ", nINWHQty=" + nINWHQty +
                ", nArrivedQty=" + nArrivedQty +
                ", applyBy='" + applyBy + '\'' +
                ", vProjectNo='" + vProjectNo + '\'' +
                ", vProjectDec='" + vProjectDec + '\'' +
                ", vBuyNo='" + vBuyNo + '\'' +
                '}';
    }
}
